//
//  UIView+Chain.h
//  ditelMaintain
//
//  Created by 葛悦彣 on 2023/3/2.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@interface UIView (Chain)
///可以直接给其他控件复用


/// 添加背景颜色
- (instancetype (^)(UIColor * color))addbackgroundColor;

/// 添加圆角
- (instancetype (^)(CGFloat Rounded))addYJ;


/// 添加点击方法只能传入block对象
- (instancetype (^)(void(^block)(void)))addClickBlock;

///点击的block
@property (nonatomic ,strong) void(^clickBlock)(void);

@end

NS_ASSUME_NONNULL_END
